Feature/1793 - Quarterly SMS reminder to connect with case_contact_types#3580
Conversation
xihai01
left a comment
There was a problem hiding this comment.
lgtm. Just need to find a way to send the link now
Also need to figure out how to make stubbed requests for all user agents. My dev env uses: Weird that the stubs for twilio service testing did not require a user agent... |
I don't think you need to include those in the headers. I just included the important stuff that Twilio needs like content-type and authorization. |
|
Very cool! I see this is a draft, do you want review yet? |
Currently working on two things:
Once these are completed, I will change the PR for review! |
| require_relative "../../../lib/tasks/case_contact_types_reminder" | ||
| require "support/webmock_helper" | ||
|
|
||
| RSpec.describe CaseContactTypesReminder do |
There was a problem hiding this comment.
nit: i think the tests here can be organized better to avoid too much duplication. To me, I feel the contexts are being crammed with too many cases.
compwron
left a comment
There was a problem hiding this comment.
very cool! merge when green
will do after addressing @xihai01 comments! |
7riumph
left a comment
There was a problem hiding this comment.
Awesome, this is great and a milestone too! It'll be our first SMS deliverable in production 🚀
What github issue is this PR for, if any?
Resolves #1793
What changed, and why?
send_case_contact_types_reminder.raketask which runs once per day to check if any volunteers are to be sent an SMS reminder regarding their uncontacted contact typesCaseContactTypesReminderclass which handles the logic for filtering volunteers that need to be reminded and uses theTwilioServiceto send the SMSsTODO
application.jserrorUserCaseContactTypesRemindermodelHow will this affect user permissions?
How is this tested? (please write tests!) 💖💪
Screenshots please :)